package com.qinglei.recoup.hmp.controller;

import com.qinglei.recoup.common.domain.CommonRes;
import com.qinglei.recoup.hmp.pojo.vo.HmpLoginParam;
import com.qinglei.recoup.hmp.pojo.vo.HmpLoginVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import springfox.documentation.annotations.ApiIgnore;

import javax.validation.Valid;

/**
 * <p>小程序认证相关模块</p>
 *
 * @author shiyupeng
 * @date 2022/1/8
 */
@Api(tags = "【废弃】【小程序】认证相关接口")
@Slf4j
@Validated
@RestController
@RequestMapping("hmp/auth")
@Deprecated
@ApiIgnore
public class HmpAuthController {

    @ApiOperation(value = "小程序登录接口")
    @PostMapping("/login")
    public CommonRes<HmpLoginVO> login(@RequestBody @Valid HmpLoginParam param) {
        log.info("login param:{}", param);
        // TODO
        return CommonRes.ok();
    }
}
